package com.wl.api.model.business;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 *
 * 
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "customer_user_grade")
@Builder
public class CustomerUserGrade implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**  */
	@TableId(type = IdType.AUTO)
	private Long id;

	/**  */
	@TableField(value = "cust_id")
	private Long custId;

	/**  */
	@TableField(value = "grade_id")
	private Long gradeId;

	/**  */
	@TableField(value = "create_time")
	private Date createTime;

	/**  */
	@TableField(value = "update_time")
	private Date updateTime;
	
	@TableField(value ="update_user")
	private String updateUser;
	
	@TableField("update_user_id")
	private Long updateUserId;
	
	public CustomerUserGrade updateMsg(Long gradeId, Long updateUserId, String updateUser) {
		this.gradeId = gradeId;
		this.updateUser = updateUser;
		this.updateUserId = updateUserId;
		return this;
	}

}
